{% extends "subpage/base.html" %}
{% block table %}
    <div class="show-items">

    </div>
{% endblock %}
{% block scripts %}
    {{ super() }}
    <script type="text/javascript" charset="utf-8"
            src="{{ url_for('static', filename='ueditor/ueditor.config.js') }}"></script>
    <script type="text/javascript" charset="utf-8"
            src="{{ url_for('static', filename='ueditor/ueditor.all.min.js') }}"></script>
    <script type="text/javascript"
            src="{{ url_for("static",filename="extra/My97DatePicker/WdatePicker.js") }}"></script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8"
            src="{{ url_for('static', filename='ueditor/lang/zh-cn/zh-cn.js') }}"></script>
    <script src="{{ url_for('static',filename='ueditor/ueditor.parse.js') }}"></script>
    <script>
        setTimeout(function () {
            uParse('div',
                {
                    'highlightJsUrl': '{{ url_for("static",filename="ueditor/third-party/SyntaxHighlighter/shCore.js") }}',
                    'highlightCssUrl': '{{ url_for("static",filename="ueditor/third-party/SyntaxHighlighter/shCoreDefault.css") }}'

                })
        }, 300);
    </script>
{% endblock %}
{% block content %}
    {{ super() }}
    <script>
        $(function () {
            $(".title-text").html("帮助手册");
            //获取帮助手册
            ajaxRequest('GET', GLOBAL_VARIABLE.BASE_URL + '/gettemplate', {
                "departName": "ADMIN"
            }, function (data) {
                if (data.code === 0) {
                    var helpstr = data.data.tempText === '' ? "暂无内容" : data.data.tempText;
                    $(".show-items").html(helpstr);
                } else {
                    $.myAlert({title: "出错提示", message: data.errmessage});
                }
            }, function (error) {
                $.myAlert({title: "出错提示", message: "请求出错！"});
            });
        });
    </script>
{% endblock %}